<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="estateTag" prefix="estateTag" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
	<head>
			<title>引导页-幸福兄弟-幸福兄弟拼购网</title>
	<meta name="description" content="幸福兄弟盐城拼购第一网www.9898sj.com是幸福兄弟营销策划有限公司旗下品牌项目。幸福兄弟盐城拼购第一网是专门针对建材、家具、电器进行同城拼购的一个网站。将全城千万消费者聚拢在一起，用量来获得最低的购买价格。网站聚集了全城1000个知名优质品牌，消费者足不出户就能完成对盐城建材、家具、电器市场进行最深刻的了解，通过拼购网购买是免费的，消费者不需要花一分钱就能实现最省钱、省心、舒心的购买。幸福兄弟盐城拼购第一网将帮助1000个优质品牌企业最大程度的宣传全城，帮助品牌企业好的口碑得到良好的传播，从而实现最好的销售。希望幸福兄弟盐城拼购第一网能为您的幸福生活、您的成功带来帮助！幸福生活，从拼购开始。公司地址，盐城市南城河路9号（迎宾桥北桥头东侧）；联系电话：0515-88175689  88175528"/>
	<meta name="keywords" content="幸福兄弟，幸福兄弟盐城拼购第一网，幸福兄弟拼购，幸福兄弟拼购网，盐城拼购，盐城拼购，盐城建材拼购，盐城家具拼购，盐城电器拼购，建材拼购，家具拼购，电器拼购"/>
	
		<link href="resource/css/css-yd.css" rel="stylesheet" type="text/css" />
		<link rel="stylesheet" type="text/css" href="resource/css/information/examples.css" />
        <script src="resource/js/jquery-1.4.2.js"></script>
		<script type="text/javascript" src="resource/js/jquery-impromptu.3.1.min.js"></script>
		
	</head>

	<body id="top" onkeydown="EnterKey()">
		<form id="form1" name="form1" method="post" action="">
			<div id="top-1">
			   <div id="logindiv" >
				<div id="login" class="top-1-left">
				</div>
             </div>
              <div id="okdiv" style="display:none">
				<div id="login" class="top-1-left2">
				</div>
             </div>
             
             
			</div>
			<div class="main1"></div>
			<div id="main">
				<div id="con">
					<div class="px1" style="cursor:pointer;" onclick="location.href='home.shtml'"><a href="#"></a></div>
					<div class="px2">
					 <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="620px" height="114px">
			        <param name="movie" value="resource/img/dh1.swf"/>
			        <param name="quality" value="high"/>
			        <embed src="resource/img/dh1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="620px" height="114px">
			        </embed>
			        </object>
					</div>
					<div class="px3">
						<table width="640px" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td
									style="background: url(resource/img/index/yd-1-1.jpg) no-repeat left; height: 160px; width: 7px"></td>
								<td style="background: url(resource/img/index/yd-1-2.jpg)">
									<div class="top-2-2">
										 <s:if test="#tgInformationimg !=null">
								            <a target="_blank"
														href="<%=basePath%>information/information_searchPingGouAndBrand.shtml?id=<s:property value='#tgInformationimg.id'/>"><img
															src="<%=basePath%><s:property value="#tgInformationimg.imgUrl"/>" style="width:626px;height:145px"/>
													</a>
									</s:if>
									</div>
								</td>
								<td
									style="background: url(resource/img/index/yd-1-4.jpg) no-repeat right; width: 7px">
									&nbsp;
								</td>
							</tr>
						</table>
					</div>
					<div class="px4-1">
						<div class="px4">
							<table border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td height="43px" >
									<img src="resource/img/index/yd-4.jpg"/>
									</td>
								</tr>
							</table>

						</div>
					</div>
				</div>
			</div>
			<center> <iframe src="<%=basePath%>index/footer.html" width="970" height="120" frameborder="0" scrolling="no"></iframe> </center>
		</form>
		<script>
		
		function EnterKey() {
            if (event.keyCode == 13) {
                 login();
                }
        }
		
		function login(){
				var username = $("#username").val();
			var password = $("#password").val();
			if("" == username){
				alert("请输入用户名");
				return;
			}
			if("" == password){
				alert("请输入密码");
				return;
			}
			$("#tijiao").hide();
			$("#logining").show();
			$.get("user/login.shtml?user.username="+encodeURI(username)+"&user.password="+password,function(message){
			    var   res= eval('('+message+")");
			    var  result=res.result;
			 
			    var  brandId = res.brandId;
				if(result == "1"){
				//	alert("登录成功");
					$("#logining").hide();
					window.location.href = 'loginsuccess.jsp';
				}else if(result == "2"){
					alert("用户名或者密码错误");
					$("#tijiao").show();
					$("#logining").hide();
				}else if(result == "3") {
					alert("服务器出现异常，请稍后再试");
					$("#tijiao").show();
					$("#logining").hide();
				}else if(result=="5"){
				    $("#logining").hide();
				    window.location.href = 'brand/detailShoper.shtml?id='+brandId;
				}else if(result == "6"){
					window.location.href = 'home.shtml';
				}
			})
		}
	</script>
	</body>
</html>

